#include <stdio.h>

int main()
{
	signed int f;
	scanf("%d",&f);
	float c;
	c=(5.0/9.0)*(f-32.0);
	printf("%.2f",c);
	return 0;
}